<h4>Categorías</h4>
<?php 
    //echo $myValue;
    $id_group = Yii::app()->request->getQuery(id, 0);
    $categories = Category::model()->findAll(array(
        'condition'=>'status=:status AND id_group=:id_group',
        'params'=>array(':status'=>1, ':id_group'=>$id_group),
        ));
    echo '<ul id="listCategories">';
    foreach ($categories as $oCategory){
        echo '<li>'.CHtml::ajaxButton ($oCategory->name,
                                CController::createUrl('catalog/UpdateListSubcategoriesAjax?id='.$oCategory->id), 
                                array('update' => '#subcategories'));
        echo '</li>';
    }
    echo '</ul>';
    
?>